<?php

	session_start();
	//include 'functions_main.inc';
	include '../info.php';
	include '../functions_main.inc';
	require '../functions.inc';

?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title>Your Page Title</title>
<meta http-equiv="Content-type" content="text/html; charset=utf-8" />
<!-- add your meta tags here -->

<link href="<?php echo $_GLOBALS['site_url']; ?>css/my_layout.css" rel="stylesheet" type="text/css" />
<!--[if lte IE 7]>
<link href="css/patches/patch_my_layout.css" rel="stylesheet" type="text/css" />
<![endif]-->

<script type="text/javascript" src="<?php echo $_GLOBALS['site_url']; ?>jquery.pack.js"></script>
<script type="text/javascript" src="<?php echo $_GLOBALS['site_url']; ?>/admin/fn_admin.js"></script>

</head>
<body>
<div id="light" class="white_content"><div class="paddingr10"><div id="login-page"><?php

	include '../session.php';

?>
<a href = "javascript:void(0)" onclick = "document.getElementById('light').style.display='none';document.getElementById('fade').style.display='none'">Hide me</a>
</div></div></div><div id="fade" class="black_overlay">

	  </div>
  <div id="page_margins">
	<div id="page">
	  <div id="header">

		<div id="topnav">
		  <!-- start: skip link navigation -->
		  <a class="skip" title="skip link" href="#navigation">Aller au menu</a><span class="hideme">.</span>
		  <a class="skip" title="skip link" href="#content">Aller au contenu</a><span class="hideme">.</span>
		  <!-- end: skip link navigation -->
		  <?php

			if ( isset($_SESSION['auth'] ))
			{
				echo "<a href=\"../logout.php\" >Se d&eacute;connecter?</a> | <a href=\"../profil.php\" title=\"Mon espace\">Mon espace</a>";
			}
			else {
			?>
			<a href = "javascript:void(0)" onclick = "document.getElementById('light').style.display='block';document.getElementById('fade').style.display='block'">Login</a>
			<?php }		?> | <a href="#">Contact</a> | <a href="#">Imprint</a>
		</div>
	  </div>	